package com.redis.common.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @description:
 * @Author C_Y_J
 * @create 2022/1/21 11:03
 **/
public interface CustomUserDetailsService extends UserDetailsService {

    /**
     * 根据mobile登录
     * @param mobile
     * @return
     * @throws UsernameNotFoundException
     */
    UserDetails loadUserBySocial(String mobile) throws UsernameNotFoundException;
}